package com.bicntech.system.service.impl;

import cn.hutool.core.collection.CollUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bicntech.common.core.domain.entity.SysDictData;
import com.bicntech.common.core.domain.entity.SysDictType;
import com.bicntech.system.mapper.SysDictDataMapper;
import com.bicntech.system.service.ISysDictTypeService;
import com.bicntech.system.mapper.SysDictTypeMapper;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author casc1
 * @description 针对表【sys_dict_type(字典类型表)】的数据库操作Service实现
 * @createDate 2024-03-07 20:43:58
 */
@Service
@RequiredArgsConstructor
public class SysDictTypeServiceImpl implements ISysDictTypeService {

    private final SysDictDataMapper dictDataMapper;

    @Override
    public List<SysDictData> selectDictDataByType(String dictType) {
        List<SysDictData> dictDatas = null;
        dictDatas = dictDataMapper.selectDictDataByType(dictType);
        System.out.println("list"+dictDatas);
        if(CollUtil.isNotEmpty(dictDatas)){
            return dictDatas;
        }
        return null;
    }
}




